<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: style.css.php 342 2013-10-09 10:06:17Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 342 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-10-09 10:06:17 +0000 (Wed, 09 Oct 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

include('includes/application_top.php');

require('css_styler.php');

include(DIR_WS_CLASSES.'class.cacheFile.php');
$css = new chacheFile('css');

$tem_path = 'templates/'.CURRENT_TEMPLATE.'/css/';
$js_css_path = 'includes/javascript/css/';

// Projekt aus dem Template
if(file_exists($tem_path.CURRENT_TEMPLATE.'.css'))
  $css->setCSS($tem_path.CURRENT_TEMPLATE.'.css');

// Standardateien aus dem Template
$css->setCSS($tem_path.'reset.css');
$css->setCSS($tem_path.'janolaw.css');
$css->setCSS($tem_path.'struktur.css');
$css->setCSS($tem_path.'template.css');
$css->setCSS($tem_path.'boxen.css');
$css->setCSS($tem_path.'page_split.css');
$css->setCSS($tem_path.'ajax.css');
$css->setCSS($tem_path.'blog.css');

$css->setCSS($js_css_path.'dhtmlx.message.css');
$css->setCSS($tem_path.'dhtmlx.message.css');



switch($_GET['page']) {
	case 'checkout.php':
		$css->setCSS($tem_path.'checkout.css');
		break;
  
  case 'product_info.php':
		$css->setCSS($tem_path.'scroll/general.css');
}

if(isset($_GET['ct']) && $_GET['ct'] == 'yes')
	$css->setCSS($tem_path.'menu_top.css');

if(isset($_GET['cmg']) && $_GET['cmg'] == 'yes')
	$css->setCSS($tem_path.'mega_menu.css');

if(isset($_GET['msg']) && $_GET['msg'] == '1')
	$css->setCSS($js_css_path.'gritter.css');

if(($browser->getBrowser() == Browser::BROWSER_FIREFOX) || ($browser->getBrowser() == Browser::BROWSER_SAFARI) || ($browser->getBrowser() == Browser::BROWSER_OPERA) || ($browser->getBrowser() == Browser::BROWSER_CHROME) || ($browser->getBrowser() == Browser::BROWSER_IE && $browser->getVersion() > 7))
	$css->setCSS($tem_path.'new_browser.css');

if(((isset($_GET['pID'])) && (!empty($_GET['pID']))) || (SITE_OVERLAYS == 'true') || $overlay) {
	$css->setCSS($js_css_path.'prettyPhoto.css');
	if(isset($_GET['pID']) && !empty($_GET['pID'])) {
		$css->setCSS($tem_path.'product_info.css');
		$css->setCSS($js_css_path.'rating.css');
		if(SOCIAL_BUTTON == '2click')
			$css->setCSS($js_css_path.'socialshareprivacy.css');

		$css->setCSS($tem_path.'jTooltip.css');
		$css->setCSS($tem_path.'wColorPicker.css');
	}
}

if(isset($_GET['sl']) && $_GET['sl'] == 'true')
	$css->setCSS($js_css_path.'slider.css');

if(!isset($_SESSION['customer_id']))
	$css->setCSS($js_css_path.'login.css');

if(CSS_BUTTON_ACTIVE == 'true')
	$css->setCSS('cache/mercari_buttons.css');

if($browser->getBrowser() == Browser::BROWSER_IE && $browser->getVersion() < 9)
	$css->setCSS($tem_path.'ie.css');

header("Cache-Control: public, must-revalidate, max-age=3600, post-check=3600, pre-check=3600");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Content-type:text/css;charset:UTF-8");
header('Connection: Keep-Alive'); 
header('Keep-Alive: timeout=300');
echo $css->outputCSS();